package itchen.com.inputdemo;

import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;

public class Main2Activity extends AppCompatActivity implements View.OnClickListener {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_main2);

		findViewById(R.id.btn_activity).setOnClickListener(this);
		findViewById(R.id.btn_rationale).setOnClickListener(this);
		findViewById(R.id.btn_listener).setOnClickListener(this);

	}


	@Override
	public void onClick(View v) {

		switch (v.getId()) {
			case R.id.btn_activity: {
				startActivity(new Intent(this, PermissionActivity.class));
				break;
			}
			case R.id.btn_listener: {
				startActivity(new Intent(this, ListenerActivity.class));
				break;
			}
			case R.id.btn_rationale: {
				startActivity(new Intent(this, RationalePermissionActivity.class));
				break;
			}
		}


	}
}
